package com.lsp.feign;

import com.lsp.feign.impl.ProductFeignImpl;
import com.shop.to.AttrTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@Component
@FeignClient(value = "website-product-1001",fallback = ProductFeignImpl.class)
public interface ProductFeign {

    @GetMapping("/pmsAttr/findNameByAttrId/{attrId}")
    public AttrTo findNameByAttrId(@PathVariable("attrId") Long attrId);



}
